<script setup>
import MenuItem from "@/components/menu/MenuItem.vue";

const props = defineProps({
  menuList: {
    type: Array,
    default: () => []
  },
  mode: {
    type: String,
    default: 'horizontal'
  },
  activeMenu: {
    type: String,
    default: '/homepage'
  },
  router: {
    type: Boolean,
    default: true
  }
})
</script>

<template>
  <el-menu
      mode="horizontal"
      :default-active="activeMenu"
      :router="router"
      active-text-color="rgb(255,141,0)">
    <MenuItem :menu-list="menuList"></MenuItem>
  </el-menu>
</template>

<style scoped>
</style>